package com.maisuiit.pattern.factory;

/**
 * 工厂模式
 * @author zhangcc
 * @date 2021-07-13
 */
public class FactoryTest {

    public static void main(String[] args) {
       TotalFactory totalFactory =  new TotalFactoryReally();
       Car car = totalFactory.createChair();
       car.run();



    }
}
